package com.cci.kangdao.escalation.controller;

import com.cci.kangdao.dto.PagedRequest;
import com.cci.kangdao.escalation.service.EscalationNotifyService;
import com.cci.kangdao.utilTool.ParameterTool;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author William Du
 * @date 2020/4/29
 */
@Controller
@RequestMapping("/escalation")
public class EscalationNotifyController {


    private Logger log = Logger.getLogger(this.getClass().getName());

    @Resource
    private EscalationNotifyService escalationNotifyService;

    @RequestMapping(value = "/getNotifyOrderList.aspx", method = RequestMethod.GET)
    public void getNotifyOrderList(@RequestParam("page") Integer page, @RequestParam("pageSize") Integer pageSize) {
        PagedRequest pagedRequest = new PagedRequest();
        pagedRequest.setPage(page);
        pagedRequest.setPageSize(pageSize);
        escalationNotifyService.getNotifyOrderList(pagedRequest);
    }

    @RequestMapping(value = "/getNotifyList.aspx", method = RequestMethod.GET)
    public void getNotifyList(@RequestParam("orderId") Long orderId) {
        escalationNotifyService.getNotifyList(orderId);
    }
    
}
